package br.com.farmabid.test.components;

import javax.enterprise.event.Observes;
import javax.enterprise.inject.spi.AfterDeploymentValidation;
import javax.enterprise.inject.spi.BeanManager;
import javax.enterprise.inject.spi.Extension;

public class WeldServletScopesSupportForSe implements Extension {
	 
	 public void afterDeployment(@Observes AfterDeploymentValidation event,
	   BeanManager beanManager) {
	 
	 /* setContextActive(beanManager, SessionScoped.class);
	  setContextActive(beanManager, RequestScoped.class);*/
	 }
	 
	 /*private void setContextActive(BeanManager beanManager,
	   Class<? extends Annotation> cls) {
	  BeanManagerImpl beanManagerImpl = (BeanManagerImpl) beanManager;
	  AbstractThreadLocalMapContext context = (AbstractThreadLocalMapContext) beanManagerImpl
	    .getContexts().get(cls).get(0);
	  context.setBeanStore(new HashMapBeanStore());
	  context.setActive(true);
	 }*/
}